package cn.lhl.dao.impl;

import cn.lhl.dao.IDeptDao;
import cn.lhl.entity.Dept;
import cn.lhl.util.HibernateUtil;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 * Created by datou on 2017/1/19.
 */
public class DeptDaoImpl  implements IDeptDao{

    public Dept shou(Integer id) {
        Dept load = HibernateUtil.getSession().load(Dept.class, id);
        return  load;
    }
}
